package com.sddfp.log;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.sddfp.log.entity.MyRule;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@MapperScan("com.sddfp.log.mapper")
@SpringBootApplication
public class BankAccessApp {
    public static void main(String[] args) {
        SpringApplication.run(BankAccessApp.class, args);
    }

//    @Bean
//    public MessageConverter messageConverter() {
//        return new Jackson2JsonMessageConverter();
//    }
//
//    @Bean
//    public IRule myRule() {
//        return new MyRule();
//    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
